#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int arr1[] = { 1,2,3,4,5,6,7,8,9,10 };
	int arr2[] = { 11,12,13,14,15,16,17,18,19,20,21 };
	int a = sizeof(arr1) / sizeof(arr1[0]);
	int b = sizeof(arr2) / sizeof(arr2[0]);
	int i = 0;
	int j = 0;
	while (i < a)
	{
		if (arr1[i] > arr2[j])
		{
			printf("%d\n", arr2[j]);
			j++;
		}
		else
		{
			printf("%d\n", arr1[i]);
			i++;
		}
	}
	while (j < b)
	{
		printf("%d\n", arr2[j]);
		j++;
	}
	return 0;
}